<layout name="page" />
<block name="content">
	<input type="hidden" name="ajax" id="ajax" value="1">
	{:widget('page_header/simple',array('name'=>'用户设置','search'=>'N'))}
	<div class="frame">
		<form method='post' id="form_data" >
			<input type="hidden" name="ajax" id="ajax" value="0">
			<div class="box">
				<label class="input-label" for="list_rows">列表数量：</label>
				<input class="input w10" type="text" id="list_rows" name="list_rows" value="{$vo.list_rows}" check="number" info="必须是数字">
			</div>
			<div class="box">
				<label class="input-label" for="list_rows"></label>
				<a class="btn btn-normal" onclick="save()">保存</a>
			</div>
		</form>
	</div>
</block>
<block name="js">
	<script type="text/javascript">
		layui.use(['global'], function() {
			var fn = {
				save : function() {
					send_form('form_data', '{:url("save")}', '', function(ret) {
						if (ret.status == 1) {
							layer.msg(ret.info, {
								time : 1200
							}, function() {
								location.reload(true);
							});
						} else {
							layer.msg(ret.info);
							return false;
						}
					});
				}
			};
			win_exp(fn);
			set_return_url(null);
		});

	</script>
</block>